@charset "utf-8";
/* CSS Document */
// 移动设备最大宽度
@mobile-max-width: 768px;
// 平板最小宽度
@table-min-width: 769px;
// 笔记本电脑最小宽度
@laptop-min-width: 1024px;
// 桌面设备最小宽度
@desktop-min-width: 1216px;
// 显示器最小宽度
@display-min-width: 1700px;
// 宽屏设备最小宽度
@widescreen-min-width: 2200px;

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: 0;
  -webkit-tap-highlight-color: transparent;
}

body>.footer, body>.navbar, body>.section {
  opacity: 0;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.navbar-above {
  transform: translateY(-100%);
}

.load-block {
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.card, .load-block {
  opacity: 0;
  transform: scale(0.8);
  transform-origin: center top;
}

html {
  box-sizing: border-box;
  background-color: var(--bg-f);
  font-size: 14px;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  min-width: 300px;
  text-rendering: optimizeLegibility;
  text-size-adjust: 100%;

  &.loaded {
    body>.footer, body>.navbar, body>.section {
      opacity: 1;
    }

    .navbar-above {
      transform: translateY(0);
    }

    .card, .load-block {
      opacity: 1;
      transform: none;
    }
  }

  &.pjax-loading .column-main .card, &.pjax-loading .load-block {
    opacity: 0.8;
    transform: scale(0.8);
    transform-origin: center top;
  }

  &.disable-scroll {
    overflow: hidden
  }

  &:not(.disable-scroll) {

    body.move-up .navbar-above {
      transform: translate3d(0, -100%, 0);
    }

    .actions.show {
      right: 16px;
    }
  }
}

body {
  margin: 0 !important;
  justify-content: space-between;
  -webkit-box-orient: vertical;
  -ms-flex-direction: column;
  flex-direction: column;
  min-height: 100vh;
  display: flex;
  font-size: 1em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: env(safe-area-inset-bottom);
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: overlay;

  &::-webkit-scrollbar-thumb {
    background: var(--theme);
    background-image: -webkit-linear-gradient(45deg, hsla(0, 0%, 100%, 0.4) 25%, transparent 0, transparent 50%, hsla(0, 0%, 100%, 0.4) 0, hsla(0, 0%, 100%, 0.4) 75%, transparent 0, transparent);
  }

  &:before {
    content: '';
    position: fixed;
    z-index: -1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transition: opacity 1s;
    background-size: cover !important;
  }

  &:after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -10;
    pointer-events: none
  }
}

::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(160, 160, 160, .2);
  border-radius: 2em;
}

::-webkit-scrollbar-track {
  background: 0 0;
  border-radius: 2em;
}

::-moz-selection {
  color: #fff;
  background: var(--theme)
}

::selection {
  color: #fff;
  background: var(--theme)
}

input[type=text] {
  -webkit-appearance: none;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500
}

iframe {
  display: block;
  border: 0;
  margin: 0 auto
}

textarea {
  font-size: 14px;
  resize: none;
  -webkit-appearance: none
}

li, ol, ul {
  list-style: none
}

img {
  border: 0;
  vertical-align: middle;
}

img:not([src]), img[src=""] {
  border: 0;
  opacity: 0
}

canvas, svg {
  vertical-align: middle
}

button {
  cursor: pointer;
  -webkit-appearance: none;
  font-size: 13px
}

table {
  border-collapse: collapse;
  border-spacing: 0
}

blockquote, body, dd, dl, dt, fieldset, figure, h1, h2, h3, h4, h5, h6, hr, html, iframe, legend, li, ol, p, pre, textarea, ul {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-size: 100%;
  font-weight: 500;
  margin-bottom: 10px;
}

button, input, select {
  margin: 0;
}

audio {
  max-width: 100%;
}

body, button, input, select, textarea {
  font-family: "Dream Font", BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

code, pre {
  -moz-osx-font-smoothing: auto;
  font-family: monospace;
}

section {
  flex: 1;
}

a {
  color: var(--theme);
  cursor: pointer;
  text-decoration: none;
  word-break: break-all;

  &:hover {
    color: var(--dark-c);
  }
}

code {
  background-color: #f5f5f5;
  color: #ff3860;
  font-size: .875em;
  font-weight: 400;
  padding: .25em .5em;
}

hr {
  background-color: var(--light-b);
  border: none;
  display: block;
  height: 1px;
  margin: 11.2px 0;
}

input[type=checkbox], input[type=radio] {
  vertical-align: baseline;
}

small {
  font-size: .875em;
}

span {
  font-style: inherit;
  font-weight: inherit;
}

strong {
  font-weight: 700;
}

fieldset {
  border: none;
}

pre {
  -webkit-overflow-scrolling: touch;
  background-color: #f5f5f5;
  color: var(--main);
  font-size: .875em;
  overflow-x: auto;
  white-space: pre;
  word-wrap: normal;
  padding: 1.25rem 1.5rem;

  code {
    background-color: transparent;
    color: currentColor;
    font-size: 1em;
    padding: 0;
  }
}

table td, table th {
  vertical-align: top;
}

.container {
  flex-grow: 1;
  margin: 0 auto;
  position: relative;
  width: auto;
}

.canvas_effects {
  position: fixed;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;

  &.universe {
    background: radial-gradient(1600px at 70% 120%, #212750 10%, #020409 100%);
  }

  &.night {
    display: none;
  }
}

/** 通用样式 开始 */
.tag:not(body) {
  align-items: center;
  background-color: var(--bg-c);
  border-radius: 4px;
  color: var(--dark-c);
  display: inline-flex;
  font-size: .75rem;
  height: 2em;
  justify-content: center;
  line-height: 1.5;
  padding-left: 0.75em;
  padding-right: 0.75em;
  white-space: nowrap;
}

.button {
  -moz-appearance: none;
  -webkit-appearance: none;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  box-shadow: none;
  display: inline-flex;
  font-size: 1rem;
  height: 2.25em;
  justify-content: flex-start;
  line-height: 1.5;
  padding: calc(.375em - 1px) calc(.625em - 1px);
  position: relative;
  vertical-align: top;

  &.is-link {
    border-color: transparent;
    color: #fff;
    background-color: var(--theme);

    &:hover {
      opacity: 0.8;
    }
  }

  &.is-rounded {
    border-radius: 290486px;
    padding-left: 1em;
    padding-right: 1em;
  }

  &.is-transparent {
    background: 0 0;
    border-color: transparent;
    color: var(--dark-c);

    &.is-hovered, &:hover {
      background-color: var(--bg-c);
    }
  }

  &.is-large {
    font-size: 1.5rem;
  }
}

.level {
  align-items: center;
  justify-content: space-between;

  &-item {
    align-items: center;
    display: flex;
    flex-basis: auto;
    flex-grow: 0;
    flex-shrink: 0;
    justify-content: center;
  }
}

.title {
  color: var(--dark-c);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.25;

  .top {
    background-image: -webkit-linear-gradient(0deg, rgb(57 169 255 / 80%) 0, rgb(155 79 255 / 80%) 100%);
    border-radius: 2px 6px;
    color: #fff;
    padding: 0 6px;
    font-size: 12px;
    line-height: 20px;
    vertical-align: 3px;
    margin-right: 5px;
    display: inline-block;
    user-select: none;
  }
}

.is-invisible {
  visibility: hidden !important;
}

.image {
  display: block;
  position: relative;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 0.8rem;
  flex-shrink: 0;

  li {

    i {
      margin-right: 3px;
    }

    &:not(:first-child)::before {
      content: "/";
      color: var(--light-d);
      padding: 0 5px;
    }
  }
}

.has-link-grey {
  line-height: 1.85rem;
  color: var(--theme);
  background-image: linear-gradient(transparent calc(100% - 1px), var(--theme) 1px);
  background-repeat: no-repeat;
  background-size: 0 100%;
  transition: all .35s ease-in-out;

  &:hover {
    color: var(--theme) !important;
    background-size: 100% 100%;
  }
}

.is-hidden-all {
  display: none !important;
}

.card:not(.is-hidden-all) ~ .card {
  margin-top: 1.4rem !important;
}

.indent {
  text-indent: 2em;
}

.menu-list {
  line-height: 1.25;
  height: 600px;
  overflow: auto;

  a {
    border-radius: 2px;
    color: var(--main);
    display: block;
    padding: 0.5em 0.75em;

    &:hover {
      background-color: var(--bg-c);
    }

    &.level {
      display: flex;
    }

    &.is-active {
      background-color: var(--bg-e);
      color: var(--light-a);
    }
  }

  i {
    margin-right: 0.5em;
  }

  li ul {
    margin: 0.5em 0.5em 0.75em 0.75em;
    padding-left: 0.5em;
    border-left: 1px solid var(--light-c);
  }

  & > li > a:not(.is-active) + .menu-list {
    display: none;
    height: auto
  }
}

.expand-done {
  background: var(--bg-k);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  height: 1.8rem;
  cursor: pointer;

  i {
    color: var(--dark-b);
    font-size: 1.6rem;
    animation: code-expand 2.4s infinite;
    text-shadow: 0 -1px 5px var(--light-d);
    transition: all 0.3s;
  }
}

.fold {
  max-height: 320px;

  .expand-done {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.0), rgb(77 77 77 / 40%));

    i {
      transform: rotatex(180deg);
    }
  }
}

.loading::after {
  content: '';
  display: block;
  width: 70px;
  height: 70px;
  margin: 12px auto;
  background: url();
  background-repeat: no-repeat;
  background-size: 100% 100%;
}


/** 通用样式 结束 */

#dprogress {
  pointer-events: none;
  user-select: none;
  z-index: 2000;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 2px;

  .bar {
    background: var(--theme);
    box-shadow: 0 0 10px 1px var(--theme);
    height: 100%;
  }
}

.logo-title {
  font-size: 1.5em;
  color: var(--theme) !important;

  img {
    max-height: 2rem;
  }
}

.logo-img-dark {
  display: none;
}

.navbar {

  &-above {
    position: fixed;
    top: 0;
    z-index: 6;
    width: 100%;
    background-color: var(--background);
    transition: all 0.5s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05), 0 0 1px rgba(0, 0, 0, 0.1);

    .container {
      display: flex;
      align-items: center;
    }

    .navbar-item {
      display: flex;
      align-items: center;
      padding-right: 0.75rem;
      flex-grow: 0;
      flex-shrink: 0;
      color: #4a4a4a;
      line-height: 1.5;
      position: relative;
    }

    .navbar-nav {
      display: flex;
      align-items: center;

      .item {
        cursor: pointer;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        position: relative;
        height: 3.5rem;
        line-height: 3.5rem;
        font-size: 15px;
        padding: 0 8px;
        margin-right: 10px;
        user-select: none;
        white-space: nowrap;
        color: var(--main);
        transition: color 0.35s;

        > i {
          display: inline-block;
          margin-right: 4px;
          font-size: 18px;
          transition: transform 0.5s;
        }

        &:last-child {
          margin-right: 0;
        }

        &::after {
          opacity: 0;
          position: absolute;
          bottom: 0;
          left: 6px;
          right: 6px;
          content: "";
          height: 3px;
          transform: scaleX(0.25);
          background: var(--theme);
          border-radius: 6px 6px 0 0;
          transition: opacity 0.5s, transform 0.5s;
        }

        &.current {
          color: var(--theme);

          &::after {
            opacity: 1;
            transform: scaleX(1);
          }

          &:hover::after {
            opacity: 1;
            transform: scaleX(1);
          }
        }

        &:hover {
          color: var(--theme);

          &::after {
            opacity: 0.3;
            transform: scaleX(0.7);
          }

          & + .joe-icon-arrow-down {
            color: var(--theme) !important;
          }
        }
      }

      &.active-shadow {
        .item.current {
          text-shadow: 0 4px 20px var(--theme);
        }
      }

      &.active-animate {
        .item:hover .m-icon {
          animation: dung 0.3s 0.12s ease;
        }
      }

      .item-dropdown {
        margin-right: 15px;

        &-link {
          a {
            height: 50px;
            line-height: 50px;
            font-size: 15px;
            padding-left: 8px;
            padding-right: 3px;
            transition: color 0.35s;
            white-space: nowrap;
            color: var(--main);
          }
        }

        &-menu {
          min-width: 90px;
          max-width: 200px;
          text-align: center;

          a {
            display: block;
            height: 34px;
            margin-right: 0;
            line-height: 34px;
            color: var(--main);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            padding: 0 15px;
            transition: color 0.35s, background 0.35s;

            &::after {
              display: none;
            }

            &:hover,
            &.current {
              color: var(--theme);
              background: var(--bg-a);
            }
          }
        }

        .item:hover:after {
          display: none;
        }

        &.active {
          .item-dropdown-link {

            a,
            i {
              color: var(--theme) !important;

              &::after {
                display: none;
              }
            }
          }
        }
      }

      .item-sub-li {
        position: relative;
        height: 34px;

        &:hover {
          .item-sub {
            visibility: visible;
            opacity: 1;
            transform: translateX(0) perspective(600px) rotateY(0);
          }
        }
      }

      .item-sub {
        visibility: hidden;
        z-index: 10;
        transform-origin: top;
        opacity: 0;
        position: relative;
        left: 100%;
        top: -34px;
        padding-left: 7px;
        box-shadow: 7px 3px 8px 0px rgba(0, 0, 0, 0.15);
        border-radius: 0 var(--radius-inner) var(--radius-inner) 0;
        transform: translateX(-20%) perspective(600px) rotateY(-45deg);
        transition: opacity 0.35s, visibility 0.35s, transform 0.35s;

        &::before {
          position: absolute;
          top: 10px;
          left: 0;
          content: "";
          transform: translateX(-50%);
          width: 0;
          height: 0;
          border: 7px solid transparent;
          border-right-color: var(--theme);
        }

        &::after {
          position: absolute;
          top: 0;
          left: 7px;
          content: "";
          width: 2px;
          height: 100%;
          background: var(--theme);
        }

        li {
          background: var(--light-a);
        }
      }
    }

    &.solid {
      backdrop-filter: unset;
      box-shadow: unset;
      border-bottom: 1px solid var(--light-b);
    }
  }


  .navbar-search {

    .submit {
      width: 50px;
    }

    &-mobile .submit {
      width: 80px;
    }

    .result {
      position: absolute;
      z-index: 2;
      top: 55px;
      left: 0;
      right: 0;
      user-select: none;
      visibility: hidden;
      overflow: hidden;
      opacity: 0;
      background: var(--bg-d);
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
      border-radius: var(--radius-inner);
      transition: visibility 0.35s, opacity 0.35s, transform 0.35s;
      transform: translate3d(0, 15px, 0);

      &.active {
        transform: translate3d(0, 0, 0);
        opacity: 1;
        visibility: visible;
      }

      .item {
        height: 40px;
        line-height: 40px;
        display: flex;
        align-items: center;
        overflow: hidden;
        padding: 0 10px;
        border-bottom: 1px solid var(--light-b);
        transition: background 0.35s;

        &:last-child {
          border-bottom: none;
        }

        &:nth-child(1) .sort {
          background: #fe2d46;
        }

        &:nth-child(2) .sort {
          background: #f60;
        }

        &:nth-child(3) .sort {
          background: #faa90e;
        }

        &:hover {
          background: var(--bg-a);
        }

        .sort {
          color: #fff;
          background: #7f7f8c;
          width: 18px;
          height: 18px;
          line-height: 18px;
          border-radius: 2px;
          text-align: center;
          margin-right: 8px;
          font-weight: 500;
        }

        .text {
          flex: 1;
          min-width: 0;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          color: var(--dark-a);
          font-size: 12px;
        }

        .views {
          color: var(--seat);
          font-size: 12px;
          margin-left: 5px;
        }
      }
    }
  }


  .navbar-search,
  .navbar-search-mobile {
    position: relative;
    margin-left: auto;
    display: flex;
    align-items: center;

    .input {
      background: var(--bg-a);
      width: 170px;
      height: 34px;
      border: 1px solid transparent;
      padding: 0 14px 0 16px;
      color: var(--dark-a);
      transition: width 0.35s, border-color 0.35s, padding-right 0.35s;
      border-radius: 17px 0 0 17px;

      &:focus {
        background: var(--light-a);
        border-color: var(--theme);
        padding-right: 28px;
        width: 170px;

        ~ .icon {
          transform: translate3d(0, -50%, 0) rotateY(180deg);
        }
      }
    }

    @keyframes swag {
      0% {
        transform: rotate(-10deg);
      }

      50% {
        transform: rotate(0deg);
      }

      100% {
        transform: rotate(10deg);
      }
    }

    .submit {
      position: relative;
      z-index: 1;
      height: 34px;
      color: #fff;
      border: none;
      background: var(--theme);
      border-radius: 0 17px 17px 0;

      i {
        transform-origin: right bottom;
        font-size: 18px;
      }

      &:hover i {
        animation: swag 0.3s ease infinite alternate;
      }
    }

    .icon {
      position: absolute;
      top: 50%;
      right: 44px;
      width: 28px;
      height: 38px;
      background: url();
      background-size: 100% 100%;
      transition: transform 0.35s;
      transform: translate3d(100%, -50%, 0) rotateY(180deg);
    }
  }

  .navbar-search-mobile {
    input {
      flex: 1;
      width: 100%;
    }
  }

  &-slideicon {
    display: none;
    cursor: pointer;
    font-size: 23px !important;
    color: var(--main);
  }

  &-searchicon {
    display: none;
    cursor: pointer;
    font-size: 23px !important;
    color: var(--main);
    margin-left: auto;
  }

  &-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: visibility 0.35s, opacity 0.35s;

    &.active {
      visibility: visible;
      opacity: 1;
    }

    &.slideout {
      z-index: 6;
    }
  }

  &-slideout {
    visibility: hidden;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    width: 78%;
    max-width: 480px;
    background: var(--bg-b);
    transform: translate3d(-100%, 0, 0);
    transition: transform 0.35s, visibility 0.35s;

    &-wrap {
      position: relative;
      padding: 35px 15px 15px;
      height: 100%;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;

      &::-webkit-scrollbar {
        display: none;
      }
    }

    &.active {
      visibility: visible;
      transform: translate3d(0, 0, 0);
    }

    &-image {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 150px;
      object-fit: cover;
      z-index: -1;
    }

    &-author {
      margin-bottom: 15px;

      .avatar {
        width: 50px;
        height: 50px;
        margin: 10px auto;
        display: block;
        border-radius: var(--radius-inner);
      }

      .info {
        overflow: hidden;
        line-height: 25px;
        text-align: center;
        display: block;

        .level {
          height: 23px;
          margin-left: 2px;
        }

        .link,
        .motto {
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
        }

        .link {
          display: block;
          font-size: 15px;
          font-weight: 500;
          color: var(--main);
        }

        .motto {
          font-size: 12px;
          color: var(--main);
        }
      }
    }

    &-menu {
      background: var(--light-a);
      padding: 10px 15px;
      border-radius: var(--radius-wrap);
      overflow: hidden;
      box-shadow: var(--box-shadow);

      &:not(:last-child) {
        margin-bottom: 15px;
      }

      &.is-toc {
        display: none;
      }

      .menu-list > li > a:not(.is-active) + .menu-list {
        display: block;
        height: auto
      }

      .item {
        display: flex;
        align-items: center;
        color: var(--main);
        padding: 5px 0;

        .fa {
          color: var(--main);
          margin-right: 5px;
        }

        strong {
          font-weight: 500;
          color: var(--theme);
        }
      }

      .link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0;
        color: var(--main);
        transition: color 0.15s;

        a {
          transition: color 0.15s;
          color: var(--main);
        }

        .fa {
          color: var(--dark-b);
          transition: transform 0.15s, fill 0.15s;
        }

        &.in {
          color: var(--theme);

          a {
            color: var(--theme);
          }

          .fa {
            color: var(--theme);
            transform: rotate(90deg);
          }
        }
      }

      .current {
        a {
          color: var(--theme);
          font-weight: 500;
          font-size: 15px;
        }
      }

      .slides {
        display: none;
        border-left: 1px solid var(--light-b);
        padding-left: 15px;

        .link {
          color: var(--main);
        }

        .current {
          color: var(--theme);
          font-weight: 500;
          font-size: 15px;
        }
      }
    }

    &.slideout-toc {
      .not-toc {
        display: none;
      }

      .is-toc {
        display: block;
        height: 600px;
        overflow: auto;
      }
    }
  }

  &-searchout {
    position: fixed;
    top: 3.5rem;
    left: 0;
    right: 0;
    z-index: 5;
    background: var(--background);
    transform: translate3d(0, -100%, 0);
    transition: transform 0.35s, visibility 0.35s;
    visibility: hidden;

    .search-container {
      padding: 10px 15px !important;
      flex-direction: row;
    }

    &.active {
      visibility: visible;
      transform: translate3d(0, 0, 0);
    }

    &-inner {
      padding: 15px 0;
      width: 100%;

      .search {
        width: 100%;
        display: flex;
        align-items: center;

        input {
          flex: 1;
          height: 36px;
          padding: 0 10px;
          border: 1px solid var(--light-b);
          border-right: none;
          border-radius: 2px 0 0 2px;
          color: var(--main);
          background: var(--bg-a);
        }

        button {
          padding: 0 16px;
          height: 36px;
          border: none;
          background: var(--theme);
          color: #fff;
          border-radius: 0 2px 2px 0;
        }
      }

      .tag-search {
        color: var(--main);
        padding: 14px 0 10px;
        font-size: 14px;
        display: flex;
        align-items: center;

        i {
          margin-right: 5px;
        }
      }

      .cloud {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -5px -5px;
        max-height: 250px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;

        .item {
          padding: 4px;

          a {
            display: block;
            padding: 0 10px;
            height: 24px;
            line-height: 24px;
            border-radius: 2px;
            font-size: 12px;
            color: #fff;
          }
        }
      }
    }
  }
}

.banner {
  width: 100%;
  height: 54vh;
  position: relative;
  margin-bottom: -4rem;
  background-position: center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;

  &:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url();
  }

  .banner-info {
    position: absolute;
    color: #fff;
    text-align: center;
    margin: 0 18px;

    &-title {
      font-size: 2.4rem;
      font-weight: bold;
      line-height: 2;
      letter-spacing: 0.6rem;
      text-shadow: rgb(28 31 33) -3px 2px 6px;
    }

    &-desc {
      font-size: 1.4rem;
      line-height: 1.4;
      max-width: 600px;

      &:after {
        content: '_';
        margin-left: 0.3rem;
        animation: flicker 1s steps(2, jump-none) infinite;
      }
    }
  }

  .banner-waves {
    width: 100%;
    height: 4rem;
    position: absolute;
    left: 0;
    bottom: 0;
    fill: var(--background);

    .parallax >use {
      animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;

      &:first-child {
        animation-delay: -2s;
        animation-duration: 7s;
        opacity: 0.9;
      }

      &:nth-child(2) {
        animation-delay: -3s;
        animation-duration: 10s;
        opacity: 0.8;
      }

      &:nth-child(3) {
        animation-delay: -4s;
        animation-duration: 13s;
        opacity: 0.9;
      }

      &:nth-child(4) {
        animation-delay: -5s;
        animation-duration: 20s;
      }
    }
  }
}

.item-dropdown {
  position: relative;

  &-link {
    display: flex;
    align-items: center;

    &-icon {
      transition: transform 0.35s;
      margin-left: -10px;
    }
  }

  &-menu {
    position: absolute;
    left: 50%;
    visibility: hidden;
    z-index: 5;
    border-top: 3px solid var(--theme);
    transform-origin: top;
    background: var(--light-a);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 var(--radius-inner) var(--radius-inner);
    padding: 10px 0;
    opacity: 0;
    transform: translateX(-50%) perspective(600px) rotateX(-45deg);
    transition: opacity 0.35s, visibility 0.35s, transform 0.35s;

    &::before {
      content: "";
      position: absolute;
      top: -10px;
      left: 50%;
      transform: translateX(-50%);
      width: 0;
      height: 0;
      border-left: 7px solid transparent;
      border-right: 7px solid transparent;
      border-bottom: 7px solid var(--theme);
    }
  }

  &.active {
    .item-dropdown-link-icon {
      transform: rotate(-180deg);
    }

    .item-dropdown-menu {
      visibility: visible;
      opacity: 1;
      transform: translateX(-50%) perspective(600px) rotateX(0);
    }
  }
}

.section {
  padding: 6rem 0.75rem 3rem 0.75rem;

  .card {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05), 0 0 1px rgba(0, 0, 0, 0.1);
    transition: background-color 0.5s ease, opacity 0.3s ease-out, transform 0.3s ease-out;
    background-color: var(--background);
    color: var(--dark-c);
    max-width: 100%;
    position: relative;
    word-wrap: break-word;
    word-break: break-all;
    border-radius: var(--radius-wrap);

    &:hover {
      background-color: var(--background-hover);
    }

    //& + .card,
    & + .column-right-shadow {
      margin-top: 1.4rem;
    }

    &[style="height: 0px;"] {
      display: none;
    }

    &.card-transparent {
      box-shadow: none;
      background: 0 0 /* 1 */;
    }

    &-image {
      border-radius: var(--radius-wrap) var(--radius-wrap) 0 0;
    }

    &-title {
      font-size: 15.4px;
      text-transform: uppercase;
      font-weight: 500;
      border-bottom: 1px solid var(--light-b);
      align-items: center;
      height: 45px;
      line-height: 45px;
      padding: 0 15px;
      display: flex;

      .card-title-label {
        margin-right: 5px;
        font-size: 1.2em;
        color: var(--theme);
      }

      span {
        flex: 1;
      }

      .card-more {
        font-size: 0.9em;
        font-weight: 400;
        color: var(--dark-b);

        i {
          margin-left: 3px;
          font-size: 1.1em;
        }

        &:hover {
          color: var(--theme);

          i {
            color: var(--theme);
          }
        }
      }
    }

    &-content {
      padding: 0.6rem 1rem 1rem 1rem;

      &.main-title {
        padding: 0.75rem 1.2rem;
        font-size: 1.1rem;

        .breadcrumb {
          font-size: 1em;
        }
      }
    }

    &-empty {
      text-align: center;
      font-size: 1.2em;
      padding: 60px 0;
      color: var(--dark-d);

      i {
        display: block;
        font-size: 7em;
      }
    }

    .thumbnail {
      display: block;
      overflow: hidden;

      &-image {
        min-height: 280px;
        width: 100%;
        margin: auto;
        display: block;
        background-position: 50% 50%;
        background-size: cover;
        transition: all 0.5s;
      }
    }

    .cover {
      &-image {
        min-height: 360px;
        width: 100%;
        margin: auto;
        position: relative;
        display: block;
        background-position: 50% 50%;
        background-size: cover;
        transition: all 0.5s;
      }

      &, &-image {
        .category {
          position: absolute;
          font-size: 0.85rem;
          right: 0.7em;
          top: 10px;

          a {
            color: #fff;
            background: rgba(0, 0, 0, 0.3);
            padding: 4px 10px;
            border-radius: var(--radius-inner);

            &:hover {
              color: var(--theme);
            }
          }
        }

        .details {
          position: absolute;
          width: 100%;
          bottom: 0;
          top: auto;
          color: #fff;
          background-image: linear-gradient(0deg, rgba(29, 41, 49, .5), rgba(255, 255, 255, 0));
          padding: 2em 15px 15px;
        }

        .title {
          color: inherit;
          position: relative;
          padding-bottom: 8px;

          &:hover:before {
            width: 60px;
          }

          &:before {
            content: '';
            position: absolute;
            width: 40px;
            height: 3px;
            top: auto;
            left: 0;
            bottom: 3px;
            transition: 0.4s;
            border-radius: 5px;
            background: var(--theme);
            box-shadow: 1px 1px 3px -1px var(--theme);
          }

        }
      }
    }

    .card-small {
      display: flex;

      & > a {
        width: 30%;
        overflow: hidden;
      }

      .small-image {
        height: 100%;
        width: 100%;
        margin: auto;
        background-position: 50% 50%;
        background-size: cover;
        transition: all 0.5s;
      }

      .card-content {
        width: 70%;
      }

      .title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-word;
      }

      .main-content {
        -webkit-line-clamp: 3 !important;
        min-height: 4em;
        max-height: 4.8em;
      }
    }

    .main {
      padding-top: 1.5rem;

      .title a {
        color: inherit;
      }

      .meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: var(--dark-b);
        font-size: .8rem;
        overflow-x: auto;

        &::-webkit-scrollbar {
          display: none;
        }

        .level-item a {
          color: inherit;

          &:hover {
            color: var(--theme);
          }
        }
      }
    }

    .post-navigation {
      padding-top: 1rem;
      justify-content: space-around;
      flex-wrap: wrap;

      a {
        flex-shrink: 1;
        color: var(--main);

        &:last-child {
          text-align: right;
        }

        &:hover {
          color: var(--theme)
        }

        i {
          font-weight: 600;
          font-size: 1.3em;
          margin: 0 0.5rem;
        }
      }
    }

    .comment-title {
      margin-top: 6px;
      font-size: 1.3em;
      font-weight: 700;

      &:before {
        content: "\f0e6";
        font-family: 'FontAwesome';
        margin-right: 4px;
        color: var(--theme);
        font-weight: 400;
        font-size: 1.15em;
      }
    }
  }

  .columns {
    justify-content: center;
    margin: -0.75rem;

    .column {
      padding: 0.75rem;
      display: block;

      &-left {
        order: 1;
      }

      &-main {
        order: 2;
      }

      &-right {
        order: 3;
      }
    }
  }
}

.widget {
  overflow: hidden !important;

  &:hover {
    .thumbnail-image, .cover .cover-image, .small-image {
      transform: scale(1.1);
      filter: brightness(0.9);
    }
  }

  &.card {
    .card-empty {
      font-size: 1em;
      font-style: italic;
      user-select: none;
      padding: 24px 0;
      background-color: var(--bg-a);
    }

    .main .main-content {
      display: -webkit-box;
      -webkit-line-clamp: 4;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
      text-indent: 1.5em;
      line-height: 1.5em;
    }
  }

  .menu-list li ul {
    margin-right: 0;
    height: auto;
  }

  &#profile {
    figure {
      width: 98px;
      height: 98px;
      padding: 4px;
      border-radius: 50%;
      background: var(--light-b);
      margin: 2em auto 0.5em auto;

      .avatar {
        transition: all 2s;
        height: 100%;
        width: 100%;
        border-radius: 50%;

        &:hover {
          transform: rotate(-360deg);
        }
      }
    }

    .nickname {
      font-size: 1.5rem;
      margin-bottom: 5px;
    }

    .motto {
      font-size: 1rem;
      line-height: 1.4;
    }

    .address {
      color: #7a7a7a;
      display: flex;
      justify-content: center;
      font-size: 1rem;
      align-items: center;

      i {
        margin-right: 0.25em;
      }
    }

    .level {
      display: flex;

      &-item {
        flex-grow: 1;
        margin: 0 !important;
        text-align: center !important;

        .heading {
          display: block;
          font-size: 11px;
          letter-spacing: 1px;
          margin-bottom: 5px;
          text-transform: uppercase;
        }

        .value {
          color: var(--dark-c);
          font-size: 2rem;
          line-height: 1.125;
          margin-bottom: 0;
          font-weight: 400 !important;
        }
      }

      &:not(:first-child):not(:empty) {
        margin-top: 1.5rem;
      }
    }
  }

  .ad-tag {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, .25);
    color: #ebebeb;
    padding: 2px 5px;
    border-radius: 2px;
    font-size: 12px;
    line-height: 16px;
    user-select: none;

    .click-close {
      height: 15px;
      width: 15px;
      stroke: #ebebeb;
      fill: #ebebeb;
      stroke-width: 1.25;
      margin-right: -4px;
      vertical-align: bottom;
      cursor: pointer;

      &:hover {
        stroke: var(--theme);
        stroke-width: 1.5;
      }
    }

  }

  .aplayer {
    background: #00000000;
    box-shadow: none;
    padding: 0.5rem 0;
    margin: 5px 0 0 5px;

    .aplayer-list ol li {
      border-top: 1px solid rgba(180, 180, 180, 0.2) !important;

      &.aplayer-list-light {
        background: rgba(200, 200, 200, 0.2);
      }

      &:hover {
        background: rgba(200, 200, 200, 0.2);
      }

    }

    &.aplayer-withlist .aplayer-info {
      border-bottom: none;
    }

    .aplayer-lrc {
      &:before {
        background: linear-gradient(180deg, #c5c5c52b 0, hsla(0, 0%, 100%, 0)) !important;
      }

      &:after {
        background: linear-gradient(180deg, hsl(0deg 0% 100% / 0%) 0, hsl(0deg 0% 100% / 23%)) !important;
      }
    }
  }

  &#comment {
    li:not(:last-child) {
      margin-bottom: 10px;
      border-bottom: 1px dashed var(--light-b);
      padding-bottom: 10px;
    }

    .user {
      display: flex;
      margin-bottom: 8px;

      & > img {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        margin-right: 8px;
        border-radius: 50%;
        border: 1px solid var(--light-d);
        padding: 3px;
      }

      .info {
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        .author {
          max-width: 150px;
          margin-bottom: 4px;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          font-weight: 600;
          color: var(--main);
        }

        .date {
          font-size: 12px;
          color: var(--dark-b);
        }
      }
    }

    .reply {
      position: relative;
      padding: 5px 10px;
      background: var(--bg-a);
      border-radius: 6px;

      &::before {
        content: "";
        width: 0;
        height: 0;
        border-bottom: 6px solid var(--bg-a);
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        position: absolute;
        left: 15px;
        bottom: 100%;
      }

      .link {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        /*! autoprefixer: ignore next */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-word;
        color: var(--dark-b);
        font-size: 13px;
        font-weight: 500;
        line-height: 24px;
        transition: all 0.35s;
        max-height: 48px;

        &:hover {
          color: var(--theme);
        }
      }
    }
  }

  .recent-post {

    .list {
      padding-top: 1px;

      .item {
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        line-height: 20px;

        i.fa {
          color: var(--main);
          transition: transform 0.3s;
        }

        &:hover {
          .link {
            color: var(--theme);

            &:after {
              opacity: 1;
              transform: scaleX(1);
            }
          }

          i.fa {
            transform: rotate(+135deg);
            color: var(--theme);
          }
        }

        &:last-child {
          margin-bottom: 0;
        }

        .link {
          display: inline-block;
          position: relative;
          color: var(--main);
          max-width: 85%;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;

          &:after {
            content: "";
            position: absolute;
            bottom: 2px;
            left: 0;
            width: 100%;
            height: 1px;
            background: var(--theme);
            opacity: 0;
            transform: scaleX(0.25);
            transition: all 0.35s;
          }
        }
      }
    }
  }

  .tags {
    font-size: 0;

    a {
      width: unset;
      margin: 4px;
      line-height: 1.2;
      overflow: unset;
      text-overflow: unset;
      white-space: unset;
      text-align: left;
      display: inline-block;
      padding: 5px;
      font-size: 13px;
      color: var(--dark-b);
      text-decoration: none;
      background: var(--bg-d);
      border: 1px solid var(--light-c);
      border-radius: 3px;

      &:hover {
        color: var(--theme) !important;
        border-color: var(--theme) !important;
      }
    }
  }

  .tagcloud a:hover {
    color: var(--dark-c) !important;
  }
}

.main-content {
  word-break: break-word;
  color: var(--main);
  font-size: 1.1rem;
  font-weight: 300;

  &.article {
    padding-bottom: 30px;
  }

  *:not(pre) > code {
    font-size: 0.9em;
    color: var(--color-a);
    margin: 0 3px;
    padding: 3px 6px;
    white-space: normal;
    vertical-align: baseline;
    word-break: break-word;
    background: var(--bg-g);
    border-radius: var(--radius-inner);
  }

  h1, h2, h3, h4, h5, h6 {
    color: var(--dark-c);
    margin-bottom: 18px;
    transition: all 0.2s ease-out;
  }

  h1, h2 {
    display: inline;
    background: linear-gradient(to bottom, transparent 60%, var(--bg-g) 0);

    &:before, &:after {
      content: '';
      display: block;
    }

    &:before {
      margin-top: 30px;
    }

    &:after {
      margin-bottom: 20px;
    }
  }

  h1 {
    font-size: 1.45em;
    font-weight: 700;
  }

  h2 {
    font-size: 1.25em;
    font-weight: 600;
  }

  h3, h4, h5 {
    position: relative;
    padding-left: 12px;

    &:before {
      content: '';
      position: absolute;
      top: 10%;
      bottom: 10%;
      left: 0;
      width: 4px;
      border-radius: 2px;
      background: var(--theme);
    }

    &:hover {
      padding-left: 16px;
    }
  }

  h3 {
    margin: 25px 0 18px 0;
    font-size: 1.2em;
    font-weight: 600;
  }

  h4 {
    font-size: 1.1em;
  }

  h5, h6 {
    font-size: 1em;
  }

  h6 {

    &:before, &:after {
      color: var(--theme);
      font-weight: 600;
      transition: all 0.2s ease-out;
    }

    &:before {
      content: '「';
      margin-right: 5px;
    }

    &:after {
      content: '」';
      margin-left: 5px;
    }

    &:hover {
      &:before {
        margin-left: -3px;
        margin-right: 8px;
      }

      &:after {
        margin-left: 8px;
      }
    }
  }

  p {
    line-height: 1.7em;
    margin-bottom: 14px;
  }

  .pwd {
    color: var(--main);
    border-radius: 2px;
    transition: all .3s;
    background: var(--main);
    font-family: Ubuntu, sans-serif;

    &:hover {
      color: #FFF;
    }
  }

  blockquote {
    line-height: 1.7em;
    margin-bottom: 14px;
    padding: 8px 15px;
    color: var(--dark-b);
    background: var(--bg-h);
    border-left: 5px solid var(--bg-i);
    border-radius: var(--radius-inner);

    & > :not(:last-child) {
      margin-bottom: 4px !important;
    }

    & > :last-child {
      margin: 0 !important;
    }
  }

  a:not([class]) {
    line-height: 1.7em;
    color: var(--theme);
    background-image: linear-gradient(transparent calc(100% - 1px), var(--theme) 1px);
    background-repeat: no-repeat;
    background-size: 0 100%;
    transition: all .35s ease-in-out;

    &:hover {
      color: var(--theme);
      background-size: 100% 100%;
    }
  }

  ol,
  ul {
    margin-bottom: 14px;
    padding-left: 16px;

    li {
      line-height: 1.6em;
      margin-bottom: 4px;

      &.task-list-item {
        list-style: none;

        input {
          position: relative;
          top: 1px;
        }
      }
    }
  }

  ol:not([class]):not([style]) {

    &[start] {
      padding-left: 34px;

      & > li:not([class]):not([style]) {
        list-style: decimal;

        &::marker {
          font-weight: 400;
          color: var(--theme);
          transition: all .5s;
        }

        &:hover::marker {
          color: #e67700;
        }
      }
    }

    &:not([start]) {
      counter-reset: li;

      & > li:not([class]):not([style]) {
        list-style: none;
        position: relative;
        padding-left: 1.2em;

        &:before {
          position: absolute;
          width: max-content;
          right: calc(100% - 1em);
          content: counter(li) '.';
          counter-increment: li;
          text-align: center;
          font-weight: 400;
          color: var(--theme);
          transition: all .5s;
        }

        &:hover:before {
          transform: rotate(360deg);
          color: #e67700;
          font-size: 1.1em;
        }
      }
    }
  }

  ul:not([class]):not([style]) > li:not([class]):not([style]) {
    list-style: none;
    position: relative;
    padding-left: 1.2em;

    &:before {
      content: "";
      width: 0.5em;
      height: 0.5em;
      left: 0;
      top: 0.5em;
      position: absolute;
      border: 1px solid var(--theme);
      background: 0 0;
      transition: all .5s;
      transform: rotateZ(45deg);
    }

    &:hover:before {
      transform: rotate(360deg);
      border-color: #e67700;
    }
  }

  table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: unset;
    background: var(--bg-d);
    margin-bottom: 14px;
    overflow: hidden;
    font-size: 0.95em;
    border: 1px solid var(--light-b);
    border-radius: var(--radius-inner);

    td,
    th {
      padding: 8px;
      border-right: 1px solid var(--light-b);
      border-bottom: 1px solid var(--light-b);
    }

    thead {
      th {
        font-weight: 500;
        background: var(--bg-h);

        &:last-child {
          border-right: none;
        }
      }
    }

    tbody {
      tr {
        transition: background 0.35s;

        &:nth-child(2n) {
          background: var(--bg-j);
        }

        &:last-child td {
          border-bottom: none;
        }

        &:hover {
          background: rgb(179 179 179 / 15%);
        }

        td:last-child {
          border-right: none;
        }
      }
    }
  }

  figure {
    margin: 18px 0;
    padding: 0;
    border-radius: var(--radius-inner);
    overflow: hidden;
    position: relative;

    & > figcaption {
      display: flex;
      background: rgb(153 153 153 / 8%);
      padding: 0;
      height: 2.2em;
      line-height: 2.2em;
      user-select: none;
      font-size: 0.9em;

      &:before {
        content: '';
        display: inline-block;
        margin: auto 44px auto 8px;
        border-radius: 50%;
        background: #ff0800 no-repeat 10px 10px;
        width: 12px;
        height: 12px;
        box-shadow: 18px 0 #fdbc40, 36px 0 #35cd4b;
      }

      div {
        margin-left: auto;
        display: inline-block;
        cursor: pointer;
        text-align: center;

        i {
          transition: all 0.25s;
          margin-right: 12px !important;

          &.fa-angle-down {
            font-size: 1.2em;
          }

          &:hover {
            opacity: 0.5;
          }

          &.close {
            transform: rotate(90deg);
          }
        }
      }
    }

    pre {
      margin: 0;
      display: flex;
      overflow-y: hidden;
      overflow-x: auto;
      padding: 0;
      border: none;
      color: inherit !important;
      background: transparent !important;
      font-size: 1rem;

      & > ul {
        margin: 0;
        padding: 0 8px;
        user-select: none;
        background: rgb(153 153 153 / 8%);

        li {
          list-style: none;
          line-height: 1.5em;
          padding: 0 !important;
          margin: 0 !important;

          &:before {
            content: none !important;
          }
        }
      }

      li + li {
        margin-top: 0;
      }

      code {
        padding: 0 0 7px 5px;
        line-height: 1.5em;
        overflow-y: hidden;
        width: 100%;

        &:not(:last-child) {
          margin-bottom: 1.8em;
        }
      }
    }

    .expand-done i {
      color: inherit !important;
    }

    &:not(.fold) .expand-done {
      background: rgb(153 153 153 / 8%);
    }
  }

  .gallery-item {
    text-align: center;

    & > div {
      position: relative;
      overflow: hidden;
      display: inline-block;
    }

    & > p {
      text-align: center;
      color: var(--dark-d);
      line-height: 1em;
      font-size: 0.9em;
    }

    .fold {
      border-radius: var(--radius-img);
    }
  }

  :not(.jg-entry) > img {
    max-width: 100%;

    &:not([class]) {
      transition: all 0.35s;
      margin: 5px 0;
      border-radius: var(--radius-img);
      cursor: zoom-in;

      &:hover {
        transform: translateY(-5px);
        box-shadow: 0 34px 20px -24px rgb(136 161 206 / 30%);
      }
    }
  }

  .mermaid {
    text-align: center;
    margin-bottom: 12px;

    & > svg {
      border-radius: var(--radius-inner);
      background: #FFF;
      transition: all .35s;
      border: 1px solid var(--light-b);

      &:hover {
        transform: translateY(-5px);
        box-shadow: 0 34px 20px -24px rgb(136 161 206 / 30%);
      }
    }
  }

  .katex {
    line-height: 1.4;
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
  }
}

.pagination {
  font-size: 1rem;
  margin: -.25rem;

  &, &-list {
    align-items: center;
    display: flex;
    justify-content: center;
    text-align: center;
  }

  &-link.is-current {
    background-color: var(--bg-e);
    border: 0;
    color: #fff;
  }

  .pagination .pagination-list {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-ordinal-group: 3;
    -ms-flex-order: 2;
    order: 2;
    flex-grow: 1;
    flex-shrink: 1;
  }

  &-link:not(.is-current), .pagination-previous, .pagination-next {
    background: var(--background);
    border: none;
  }

  &-link, &-next, &-previous {
    color: var(--dark-c);
    min-width: 2.25em;
    font-size: 1em;
    justify-content: center;
    margin: .25rem;
    text-align: center;
    padding: calc(.375em - 1px) .5em;
    position: relative;
    vertical-align: top;
    align-items: center;
    border-radius: 4px;
    line-height: 1.5;
    height: 2.25em;
    box-shadow: 0 4px 10px rgb(0 0 0 / 5%);
    display: inline-flex;

    a {
      color: var(--dark-c);
    }
  }
}

.actions {
  position: fixed;
  right: -48px;
  bottom: 40px;
  z-index: 200;
  transition: all 0.5s;
  opacity: 0.9;

  & > div {
    display: block;
    margin-bottom: 5px;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    background-color: var(--theme);
    color: #fff;
    text-align: center;
    font-size: 16px;
    line-height: 35px;
    border: none;
    cursor: pointer;
  }
}

.footer {
  background-color: transparent;
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  position: relative;

  &:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background);
  }

  &-container {

    .logo-title {
      margin: 15px 15px 15px 0;
      display: block;
    }

    & > li {
      display: inline-block;
      vertical-align: middle;
      padding: 0 5px;
      color: var(--dark-b);
      line-height: 1.6em;

      & > p:not(:first-child) {
        font-size: 0.9em;
      }

      &:last-child {
        float: right;
      }
    }

    .icon-spot {
      &:first-child > *:not(:first-child):before {
        content: "·";
        margin: 0 0.3em;
        display: inline-block;
      }

      &:not(:first-child)> *:not(:first-child):before {
        content: "";
        width: 4px;
        height: 4px;
        margin: 0 0.4em;
        border-radius: 50%;
        display: inline-block;
        background: var(--dark-b);
        opacity: .3;
        vertical-align: 0.2em;
      }
    }

    a:not([class]) {
      color: var(--dark-b);

      &:hover {
        color: var(--theme);
      }
    }

    .stand {
      color: var(--theme);
      margin: 0 4px;
    };

    .powered {
      color: var(--theme);
      font-weight: 600;
    }

    .cloud-driven {
      margin: 0 3px;

      img {
        height: 16px;
        vertical-align: text-bottom;
      }
    }
  }
}

@media (max-width: (@desktop-min-width - 1)) {
  .navbar {

    .navbar-search .input {
      width: 100px;
    }
  }

  .container:not(.two-column) .column-right {
    display: none !important;
  }

  .is-hidden-not-desktop {
    display: none !important;
  }

  .card:not(.is-hidden-not-desktop):not(.is-hidden-all) ~ .card {
    margin-top: 1.4rem !important;
  }
}

@media (max-width: (@laptop-min-width - 1)) {
  .section .card {
    .cover-image {
      min-height: 24vw;
    }

    .thumbnail-image {
      min-height: 40vw;
    }
  }

  .navbar .container {
    padding: 0 0.75rem;

    .navbar-searchicon {
      display: block;
    }

    .navbar-search {
      display: none;
    }
  }
}

@media (max-width: @mobile-max-width) {

  .title {
    font-size: 1.3rem !important;
  }

  .container {
    .column-side, .column-main {
      flex: none;
      width: 100%;
    }
  }

  .navbar .container {
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 0 1.5rem;
    min-height: 3.5rem;

    .navbar-slideicon {
      display: block;
    }

    .navbar-nav {
      display: none;
    }

    .navbar-searchicon {
      margin-left: 0;
    }
  }

  .is-hidden-mobile {
    display: none !important;
  }

  .card:not(.is-hidden-mobile):not(.is-hidden-all) ~ .card {
    margin-top: 1.4rem !important;
  }

  .pagination-next, .pagination-previous {
    flex-grow: 1;
    flex-shrink: 1;
  }

  .section {
    padding-top: 5rem;

    .columns .column {
      padding: 0.5rem;
    }

    .card {
      .cover-image {
        height: 40vw;
        min-height: 130px;
      }

      .thumbnail-image {
        height: 40vw;
        min-height: 95px;
      }
    }
  }

  .footer-container {
    text-align: center;
    & > li {
      display: block;

      &:last-child {
        float: none;
      }

      .footer-truncation {
        display: block;

        &:before {
          content: none !important;
        }
      }
    }
  }

  html:not(.disable-scroll) .actions.show {
    right: 8px;
  }
}

@media (min-width: @table-min-width) {
  .container {

    .column {

      &-side {
        flex: none;
        width: 33%;
      }

      &-main {
        flex: none;
        width: 67%;
      }
    }

    .columns, .level {
      display: flex;
    }

    .column-main.is-sticky, .column-left.is-sticky, .column-right.is-sticky, .column-right-shadow.is-sticky {
      transition: all 0.5s;
      align-self: flex-start;
      position: -webkit-sticky;
      position: sticky;
      top: 5rem;
    }

    .pagination .pagination-previous {
      order: 1;
    }

    .pagination .pagination-list {
      flex-grow: 1;
      flex-shrink: 1;
      justify-content: center;
      order: 2;
    }

    .pagination .pagination-next {
      order: 3;
    }
  }

  body.move-up {
    .container {
      .column-main.is-sticky, .column-left.is-sticky, .column-right.is-sticky, .column-right-shadow.is-sticky {
        top: 1rem;
      }
    }
  }
}

@media (min-width: @laptop-min-width) {
  .section .card {
    .cover-image {
      min-height: 250px;
    }

    .thumbnail-image {
      min-height: 300px;
    }
  }

  .container {
    max-width: 960px;

    .column {

      &-side {
        flex: none;
        width: 30%;
      }

      &-main {
        flex: none;
        width: 70%;
      }
    }
  }
}

@media (min-width: @desktop-min-width) {
  .section .card {
    .cover-image {
      min-height: 240px;
    }

    .thumbnail-image {
      min-height: 185px;
    }
  }

  .container {
    max-width: 1152px;

    .column {

      &-side {
        flex: none;
        width: 25%;
      }

      &-main {
        flex: none;
        width: 50%;
      }
    }
  }

  &.two-column {
    max-width: 1000px;

    .column {

      &-side {
        flex: none;
        width: 28%;
      }

      &-main {
        flex: none;
        width: 72%;
      }
    }
  }

  .is-hidden-desktop {
    display: none !important;
  }

  .card:not(.is-hidden-desktop):not(.is-hidden-all) ~ .card {
    margin-top: 1.4rem !important;
  }
}

@media (min-width: 1408px) {
  .section .card {

    .cover-image {
      min-height: 260px;
    }

    .thumbnail-image {
      min-height: 400px;
    }
  }

  .container {
    max-width: 1344px;

    .column {

      &-side {
        flex: none;
        width: 22%;
      }

      &-main {
        flex: none;
        width: 56%;
      }
    }

    &.two-column {
      max-width: 1150px;

      .column {

        &-side {
          flex: none;
          width: 26%;
        }

        &-main {
          flex: none;
          width: 74%;
        }
      }
    }
  }
}

@media (min-width: @display-min-width) {
  .section .card {
    .cover-image {
      min-height: 320px;
    }

    .thumbnail-image {
      min-height: 600px;
    }
  }

  .container {
    max-width: 1600px;

    .column {

      &-side {
        flex: none;
        width: 20%;
      }

      &-main {
        flex: none;
        width: 60%;
      }
    }

    &.two-column {
      max-width: 1300px;

      .column {

        &-side {
          flex: none;
          width: 24%;
        }

        &-main {
          flex: none;
          width: 76%;
        }
      }
    }
  }
}

@media (min-width: @widescreen-min-width) {
  html {
    font-size: 15px;
  }

  .container:not(.two-column) {
    max-width: 1800px;

    .column {

      &-side {
        flex: none;
        width: 18%;
      }

      &-main {
        flex: none;
        width: 64%;
      }
    }
  }
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  to {
    transform: translate3d(85px, 0, 0);
  }
}

@keyframes flicker {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes code-expand {
  0% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.1;
  }
  100% {
    opacity: 0.8;
  }
}

@keyframes dung {
  0% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }

  30% {
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
  }

  60% {
    -webkit-transform: translateY(2px);
    transform: translateY(2px);
  }

  80% {
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
  }

  90% {
    -webkit-transform: translateY(1px);
    transform: translateY(1px);
  }

  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

/* 时间戳界面 */
.timeline {
  margin-left: 16px;
  padding-left: 24px;
  padding-top: 16px;
  border-left: 1px solid var(--light-b);

  &-title {
    background: var(--bg-e);
    color: var(--light-a);
    display: inline-flex;
    font-size: 0.75em;
    height: 2em;
    padding: 0 8px;
    align-items: center;
    white-space: nowrap;
    border-radius: var(--radius-inner);
    margin-bottom: 0;
  }

  .media {
    position: relative;
    display: flex;
    border: none;

    &:not(:last-child) {
      margin-bottom: 21px;
    }

    & + .media {
      padding-top: 14px;
      margin-top: 0;
    }

    &-content {
      time {
        font-size: 0.85em;
        display: block;
        color: var(--dark-b);
      }

      .title {
        color: var(--dark-c);
        font-size: 1.1em !important;
      }

      p a {
        font-size: 0.9em;
        color: var(--dark-e);
      }
    }

    &-left {
      margin-right: 14px;

      img {
        height: 64px;
        width: 64px;
        object-fit: cover;
      }
    }

    &:before {
      width: 9px;
      height: 9px;
      top: 18px;
      background: var(--light-d);
      border-radius: 50%;
    }

    &:before,
    &:last-child:after {
      content: '';
      display: block;
      position: absolute;
      left: -29px;
    }

    &:first-child:before {
      top: 4px;
    }

    &:first-child:last-child:after {
      top: 11px;
    }

    &:last-child:after {
      top: 27px;
      width: 9px;
      bottom: 0;
      background: var(--bg-b);
    }

  }
}

/* 日志界面 */
.journal {

  em {
    font-style: normal;
  }

  &-date {
    line-height: 34px;
    color: var(--dark-c);

    i {
      margin-right: 8px;
    }
  }

  &-content {
    padding: 10px 12px;
    overflow: hidden;
    border-radius: 0 6px 6px 6px;
    background-color: var(--bg-c);
    position: relative;

    .main-content {
      :last-child {
        margin-bottom: 0;
      }
    }

    &.fold {
      max-height: 240px;
    }

    &.unfold {
      padding: 10px 12px 40px 12px;
    }
  }

  &-operation {
    padding: 12px 0 2px 0;

    &-item {
      margin-left: 10px;
      transition: all 0.2s;
      user-select: none;
      color: var(--main);

      a {
        color: var(--main);

        i {
          margin-right: 5px;
        }

        &:hover {
          color: var(--theme);

          i {
            transform: scale(1.1);
          }
        }

        &:not(.like) .fa-heart-o {
          color: #f55448;
          transform: none;

          &:before {
            content: '\f004';
          }
        }
      }
    }
  }

  &-comment {
    padding: 12px 0 2px 0;
    display: none;
  }
}

/* 友链界面 */
.links {
  margin-bottom: 20px;

  .link-title {
    margin-bottom: 10px;
  }

  ul {
    margin: 0;
    list-style: none;
    padding: 0;
    width: 100%;
    display: inline-block;

    li {
      width: 32%;
      float: left;
      border: 1px solid var(--light-b);
      padding: 10px 30px;
      margin: 4px;
      position: relative;
      overflow: hidden;
      transition: all .3s;
      border-radius: 10px;
      height: 100px;
      box-sizing: border-box;
      background: var(--bg-d);

      &:hover {
        border: 1px solid var(--theme);

        &:before {
          width: 180%;
        }

        img {
          transform: rotate(360deg);
        }

        .link-name {
          opacity: 0.9;
        }

        .link-desc {
          opacity: 0.6;
        }
      }

      &:before {
        content: "";
        background-color: var(--theme);
        transform: skew(45deg, 0);
        width: 0;
        height: 100%;
        position: absolute;
        top: 0;
        left: -60px;
        transition: all .5s;
        opacity: 0.2;
      }

      img {
        float: right;
        box-shadow: inset 0 0 10px var(--theme);
        opacity: 1;
        transform: rotate(0deg);
        transition: all ease 1s;
        margin-top: 5px;
        width: 65px;
        height: 65px;
        padding: 2px;
        border-radius: 100%;
      }
    }
  }

  .link-name {
    color: var(--theme);
    padding-bottom: 6px;
    display: block;
    transition: all .3s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
  }

  .link-desc {
    color: #949494;
    font-size: 13px;
    border-top: 1px dashed var(--light-d);
    line-height: 25px;
    transition: all .5s;
    text-indent: 1em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

@media (max-width: 630px) {
  .links ul li {
    width: 100% !important
  }
}

@media (max-width: 768px) {
  .links ul li:before {
    display: none
  }
}

@media (max-width: 1600px) {
  .links ul li {
    width: 48%
  }
}

/* 相册界面 */
.photos {
  padding-top: 60px !important;

  &-title {
    position: absolute;
    top: 15px;
    left: -10px;
    background: var(--theme);
    color: #fff;
    padding: 0 12px;
    height: 30px;
    line-height: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 2px 2px 2px 0;
    box-shadow: 2px 5px 10px rgb(49 58 70 / 15%);
    user-select: none;

    &::before {
      content: '';
      position: absolute;
      bottom: -10px;
      left: -10px;
      border-style: solid;
      border-width: 10px;
      border-color: var(--theme) transparent transparent;
      transform: rotate(90deg);
    }
  }

  &-teams {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    border-top: 1px solid var(--light-b);
    padding-top: 15px;

    .item {
      user-select: none;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
      background: var(--bg-b);
      height: 28px;
      line-height: 28px;
      border-radius: 14px;
      cursor: pointer;
      color: var(--main);
      font-size: 12px;
      padding: 0 15px;
      text-align: center;
      transition: color 0.35s, background 0.35s, box-shadow 0.35s, transform 0.35s;

      &.active {
        transform: translateY(-2px);
        color: #fff;
        background: var(--theme);
        box-shadow: 0 5px 5px rgb(0 0 0 / 5%);
      }
    }
  }

  &-gallery {
    display: block;
    width: 100%;
    position: relative;
    margin-top: 12px;

    &.loading {
      margin-bottom: 80px;

      &:empty {
        height: 0 !important;
      }

      &:after {
        width: 100%;
        position: absolute;
        bottom: -80px;
      }
    }

    & > div {
      position: absolute;
      display: inline-block;
      overflow: hidden;
      opacity: 0.1;
      margin: 0;
      padding: 0;
      border-radius: 8px;
      cursor: pointer;

      & > img {
        position: absolute;
        transition: transform 1s ease;
        top: 50%;
        left: 50%;
        margin: 0;
        padding: 0;
        border: none;
        opacity: 0;
      }

      & > .jg-caption {
        opacity: 0;
        position: absolute;
        bottom: 0;
        padding: 5px;
        background-color: #000000;
        left: 0;
        right: 0;
        margin: 0;
        color: white;
        font-size: 0.85em;
        font-weight: 300;
        font-family: sans-serif;
        transition: opacity 300ms ease-in;

        &.jg-caption-visible {
          opacity: 0.7;
        }
      }

      .info {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        color: #fff;
        padding: 20px;
        max-height: 100%;
        transform: translateY(calc(100% - 45px));
        transition: transform 0.35s ease-in;
        background: linear-gradient(0deg,#151515cc,transparent 100%);

        svg {
          width: 1.3em;
          height: 1.3em;
          fill: #fff;
          vertical-align: text-bottom;
          stroke-width: 40;
          stroke: #fff;
          margin-right: 6px;
          float: left;
        }

        & > :not(:first-child) {
          margin-top: 5px;
        }

        & > div:first-child {
          margin-left: -16px;
          transition: all 0.35s ease-in;

          svg {
            width: 0;
            transition: all 0.35s ease-in;
          }

          p {
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
          }
        }
      }

      &:hover {

        img {
          transform: scale(1.2);
        }

        .info {
          overflow-y: scroll;
          transform: translateY(0);

          & > div:first-child {
            margin-left: 0;

            svg {
              width: 1.3em;
            }

            p {
              overflow: inherit;
              white-space: inherit;
              text-overflow: inherit;
            }
          }
        }
      }
    }

    & > .jg-entry-visible {
      opacity: 1;
      background: none;

      & > img {
        opacity: 1;
      }
    }
  }
}